//    Copyright (C) Kherty.  All rights reserved.
#region

using System;
using System.Windows;
using System.Windows.Media.TextFormatting;

#endregion

namespace OpenLS.Spreadsheet.UI.Internals
{
    internal class CellTextParagraphProperties : TextParagraphProperties
    {
        private readonly FlowDirection _flowDirection;
        private readonly CellTextRunPropertiesBase _runProperties;
        private readonly TextAlignment _textAlignment;
        private readonly TextWrapping _textWrapping;

        public CellTextParagraphProperties(CellTextRunPropertiesBase runProperties, FlowDirection flowDirection,
                                           TextAlignment textAlignment, TextWrapping textWrapping)
        {
            _runProperties = runProperties;
            _textWrapping = textWrapping;
            _textAlignment = textAlignment;
            _flowDirection = flowDirection;
        }

        public override FlowDirection FlowDirection
        {
            get { return _flowDirection; }
        }

        public override TextAlignment TextAlignment
        {
            get { return _textAlignment; }
        }

        public override double LineHeight
        {
            get { return 0; } //\\
        }

        public override bool FirstLineInParagraph
        {
            get { return false; }
        }

        public override TextRunProperties DefaultTextRunProperties
        {
            get { return _runProperties; }
        }

        public override TextWrapping TextWrapping
        {
            get { return _textWrapping; }
        }

        public override TextMarkerProperties TextMarkerProperties
        {
            get { throw new NotImplementedException(); }
        }

        public override double Indent
        {
            get { return 0; }
        }
    }
}